package com.snowRemovingUser.mapper;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.snowRemovingUser.domain.TCommentRiskLevelRule;

import java.util.List;

/**
 * comment风险等级规则Mapper接口
 *
 * @author lg
 * @date 2024-04-10
 */
@DataSource(value = DataSourceType.SLAVE)
public interface TCommentRiskLevelRuleMapper
{
    /**
     * 查询comment风险等级规则
     *
     * @param riskLevelRuleId comment风险等级规则主键
     * @return comment风险等级规则
     */
    public TCommentRiskLevelRule selectTCommentRiskLevelRuleByRiskLevelRuleId(String riskLevelRuleId);

    /**
     * 查询comment风险等级规则列表
     *
     * @param tCommentRiskLevelRule comment风险等级规则
     * @return comment风险等级规则集合
     */
    public List<TCommentRiskLevelRule> selectTCommentRiskLevelRuleList(TCommentRiskLevelRule tCommentRiskLevelRule);

    /**
     * 新增comment风险等级规则
     *
     * @param tCommentRiskLevelRule comment风险等级规则
     * @return 结果
     */
    public int insertTCommentRiskLevelRule(TCommentRiskLevelRule tCommentRiskLevelRule);

    /**
     * 修改comment风险等级规则
     *
     * @param tCommentRiskLevelRule comment风险等级规则
     * @return 结果
     */
    public int updateTCommentRiskLevelRule(TCommentRiskLevelRule tCommentRiskLevelRule);

    /**
     * 删除comment风险等级规则
     *
     * @param riskLevelRuleId comment风险等级规则主键
     * @return 结果
     */
    public int deleteTCommentRiskLevelRuleByRiskLevelRuleId(String riskLevelRuleId);

    /**
     * 批量删除comment风险等级规则
     *
     * @param riskLevelRuleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTCommentRiskLevelRuleByRiskLevelRuleIds(String[] riskLevelRuleIds);
}
